home *** CD-ROM | disk | FTP | other *** search
- <html>
-
- <head>
-
- <LINK REL="stylesheet" TYPE="text/css" HREF="%7css/default.css">
- </head>
-
- <SCRIPT LANGUAGE="JavaScript">
-
- function init()
- {
- // Remove the formatting options
- document.object_prop.targets.options[0] = null;
- document.object_prop.choices.options[0] = null;
- }
-
- function OnSubmit()
- {
- modifyValues();
- document.forms[0].submit();
- }
-
- function OnCancel()
- {
- window.parent.location = "%8"
- }
-
- function addTarget()
- {
- // Run through this list twice, once to add, once to delete
- total = document.object_prop.choices.options.length;
- for (count = 0; count < total; ++count)
- {
- current_target = document.object_prop.choices.options[count];
-
- if (current_target.selected)
- {
-
- // remove the object from the current targets
- target_name = current_target.text;
- target_id = current_target.value;
-
- // Create a new option
- option = new Option(target_name, target_id, false, false);
-
- // add it to the possible targets
- document.object_prop.targets.options[document.object_prop.targets.options.length] = option;
- }
- }
-
- for (count = document.object_prop.choices.options.length -1; count >= 0; --count)
- {
- if (document.object_prop.choices.options[count].selected)
- document.object_prop.choices.options[count] = null;
- }
- }
-
- function addAllTargets()
- {
- // Run through the options and remove all selections
- total = document.object_prop.choices.options.length;
- for (count = 0; count < total; ++count)
- {
- current_target = document.object_prop.choices.options[count];
-
- // remove the object from the current targets
- target_name = current_target.text;
- target_id = current_target.value;
-
- // Create a new option
- option = new Option(target_name, target_id, false, false);
-
- // add it to the possible targets
- document.object_prop.targets.options[document.object_prop.targets.options.length] = option;
- }
-
- // Remove old objects
- document.object_prop.choices.options.length = 0;
- }
-
-
-
- function deleteTarget()
- {
-
- // Run through the options and remove the current selections
- total = document.object_prop.targets.length;
- for (count = 0; count < total; ++count)
- {
- current_target = document.object_prop.targets.options[count];
- if (current_target.selected)
- {
- // remove the object from the current targets
- target_name = current_target.text;
- target_id = current_target.value;
-
- // Create a new option
- option = new Option(target_name, target_id, false, false);
-
- // add it to the possible targets
- document.object_prop.choices.options[document.object_prop.choices.options.length] = option;
- }
- }
- for (count = total -1; count >= 0; --count)
- {
- if (document.object_prop.targets.options[count].selected)
- {
- document.object_prop.targets.options[count] = null;
- }
-
- }
- }
-
- function deleteAllTargets()
- {
- // Run through the options and remove all of the selection
- total = document.object_prop.targets.length;
- for (count = 0; count < total; ++count)
- {
- current_target = document.object_prop.targets.options[count];
-
- // remove the object from the current targets
- target_name = current_target.text;
- target_id = current_target.value;
-
- // Create a new option
- option = new Option(target_name, target_id, false, false);
-
- // add it to the possible targets
- document.object_prop.choices.options[document.object_prop.choices.options.length] = option
- }
- document.object_prop.targets.options.length = 0;
- }
-
- function modifyValues()
- {
- final_value = "";
- first = true;
-
- for (count = 0; count < document.object_prop.targets.options.length; ++count)
- {
- if (!first)
- {
- final_value += "+";
- }
- else first = false;
-
- current_target = document.object_prop.targets.options[count];
- final_value += current_target.value;
-
- // De-select all entries on the select box
- current_target.selected = false;
- }
-
- // Build the string
- document.object_prop.selectedChoices.value = final_value;
- }
-
- </SCRIPT>
-
- <BODY onload="init();">
-
- <CENTER>
-
- <FORM action="%3" target="_parent" method="post" name="object_prop" onSubmit="modifyValues()">
-
- <strong> %4 </strong>
- <BR>
- <BR>
-
- <table align=center CELLPADDING="0" CELLSPACING="0" border=0 width=100%>
-
- <tr>
- <td class="list" colspan=2 align=left> %5 </td>
- <td class="list" align=left> %6 </td>
- </tr>
-
- <tr>
- <td class="list" align=left>
- <SELECT class="menuFormElement" multiple NAME="choices" SIZE=10 width="200px">
- <OPTION> This is a formatting string </OPTION>
- %1
- </SELECT>
- </td>
-
- <td>
- <table>
- <tr><td align=middle>
- <table align=center CELLPADDING="0" CELLSPACING="5" border=0>
- <tr><td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:addTarget()"> > </a></div>
- </td></tr>
- </table>
- </td></tr>
- <tr><td align=middle>
- <table align=center CELLPADDING="0" CELLSPACING="5" border=0>
- <tr><td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:addAllTargets()"> >> </a></div>
- </td></tr>
- </table>
- </td></tr>
- <tr><td align=middle>
- <table align=center CELLPADDING="0" CELLSPACING="5" border=0>
- <tr><td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:deleteTarget()"> < </a></div>
- </td></tr>
- </table>
- </td></tr>
- <tr><td align=middle>
- <table align=center CELLPADDING="0" CELLSPACING="5" border=0>
- <tr><td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:deleteAllTargets()"> << </a></div>
- </td></tr>
- </table>
- </td></tr>
- </table>
- </td>
-
- <td class="list" align=left>
- <SELECT class="menuFormElement" multiple NAME="targets" SIZE=10 width="200px">
- <OPTION> This is a formatting string </OPTION>
- %2
- </SELECT>
- </td>
- </table>
-
- <BR>
-
- <table align=center CELLSPACING="5" CELLPADDING="0" border=0>
- <tr>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:OnSubmit()">OK</a></div>
- </td>
-
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:OnCancel()">Cancel</a></div>
- </td>
- <tr>
- </table>
-
- <input type=hidden name="selectedChoices" value = "">
-
- </FORM>
-
- </CENTER>
- </body>
- </html>
-